//切换nft商城展示页面
import 'package:flutter/material.dart';
import 'package:get/get_utils/src/extensions/context_extensions.dart';
import 'package:yysk_app/enum/app_enum.dart';
import 'package:yysk_app/widget/image_asset_widget.dart';

switchModePop({required BuildContext context, required AppModel type}) {
  showDialog(
    context: context,
    barrierDismissible: false,
    useSafeArea: false,
    builder: (BuildContext context) {
      return     Container(
            width: context.width,
         
            decoration: BoxDecoration(color: Colors.white),
            child: Center(
              child: Column(
                crossAxisAlignment: CrossAxisAlignment.center,
                mainAxisAlignment: MainAxisAlignment.center,
                children: [
                  type == AppModel.nft
                      ? ImageAssetWidget(
                        imageUrl: 'static/images/page2.png',
                        width: context.width,
                        height: context.height,
                        fit: BoxFit.cover,
                      )
                      : ImageAssetWidget(
                        imageUrl: 'static/images/page1.png',
                        width: context.width,
                        height: context.height,
                        fit: BoxFit.cover,
                      ),
                  // Lottie.asset('static/json/kongfu.json', width: 50.px, height: 50.px),
                  // Text(type==AppModel.nft?'欢迎来到元宇时空':'欢迎来到商城',style: TextStyle(color: AppColors.fontColorBlack,fontSize: 20.px),)
                ],
              ),
            ),
          );
      
    },
  );
}
